package com.wechat.ferry.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 用户信息
 * </p>
 *
 * @author Chuan.Chen
 * @since 2025-02-19
 */
@TableName("wx_user")
@ApiModel(value = "WxUser对象", description = "用户信息")
@Data
public class WxUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("用户")
    private String userName;

    @ApiModelProperty("月份")
    private Integer month;

    @ApiModelProperty("天")
    private Integer day;

    @ApiModelProperty("岁数范围")
    private String ageScope;

    @ApiModelProperty("性别")
    private String sex;

    @ApiModelProperty("是否农历 1是 0否")
    private Boolean isChineseCalendar;

    @ApiModelProperty("是否自定义")
    private Boolean isCustom = Boolean.FALSE;

    public WxUser(String userName, Integer month, Integer day, String ageScope, String sex, Boolean isChineseCalendar) {
        this.userName = userName;
        this.month = month;
        this.day = day;
        this.ageScope = ageScope;
        this.sex = sex;
        this.isChineseCalendar = isChineseCalendar;
        this.isCustom = Boolean.FALSE;
    }

    public WxUser(String userName, Integer month, Integer day, String ageScope, String sex) {
        this.userName = userName;
        this.month = month;
        this.day = day;
        this.ageScope = ageScope;
        this.sex = sex;
        this.isChineseCalendar = Boolean.TRUE;
        this.isCustom = Boolean.FALSE;
    }
}
